<?php foreach( MyConstants::getCurrencyInUse() as $currency ): ?>
    <?php if( $sf_user->getAttribute('currency') == $currency ): ?>
       <div class="lang_active">
        <?php echo __($currency); ?></div>
        <?php else: ?>
            <div class="lang">
            <?php echo link_to(
                            __($currency)
                            , 'system/setcurrency?currency=' . $currency
                        ) ?></div>
        <?php endif; ?>
    <?php endforeach; ?>